package com.lhc.nacosprovider.fegin.impl;

import com.lhc.nacosprovider.fegin.StockClient;
import org.springframework.stereotype.Component;

/**
 * @author liuchaoqun
 * @date 2022/6/18
 * @Description 失败回调接口
 */
@Component
public class StockClientFall  implements StockClient {

    @Override
    public String reduce(Long id) {
        throw new RuntimeException("服务调用失败");
    }

    @Override
    public String index() {
        throw new RuntimeException("服务调用失败");
    }

}
